package com.dfrz.ch09;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/19 16:17
 * 描述:
 */
public class StudentMain {
    public static void main(String[] args) {

        Student s1=new Student("小华",1,15,"一班",1.8f,0);
        Student s2=new Student("小刘",1,15,"一班",1.8f,0);
        Student s3=new Student("小陈",1,15,"一班",1.8f,0);
        Student s4=new Student("小马哥",1,15,"一班",1.8f,0);
        Student s5=new Student("小宇",1,15,"一班",1.8f,0);

        s1.buyFun();
        s1.buyFun();

        s2.buyFun();
        s2.buyFun();

        s3.buyFun();
        s3.buyFun();

        s4.buyFun();
        s4.buyFun();

        s5.buyFun();
        s5.buyFun();

        System.out.println("所有成员消费了"+Student.conTotal);  //静态变量通过方法名称调用

    }
}
